"""
某群有多个成员，群主给成员发普通红包。
群主负责发红包，不能抢红包。红包金额从群主余额中扣除。
成员负责抢红包。抢到的红包金额存到自己余额中。
"""
from python_test.Manager import Manager
from python_test.member import Member

if __name__ == '__main__':

    manage = Manager("JK", 100, 900)
    member1 = Member("Justin", 0, 100)
    member2 = Member("Ding", 0, 100)
    member3 = Member("V", 0, 100)

    # 显示余额
    manage.show()
    member1.show()
    member2.show()
    member3.show()

    # 发红包
    red_list = manage.send(3, 200)
    # 抢红包
    member1.get(red_list)
    member2.get(red_list)
    member3.get(red_list)

    # 报数
    member1.show()
    member2.show()
    member3.show()

